﻿using System;

namespace Borg
{
    [AttributeUsage(AttributeTargets.Interface, AllowMultiple=true, Inherited=false)]
    public class SlotDefinitionAttribute : Attribute
    {
        public string Name { get; internal set; }
        public bool IsThreadsafe { get; set; }

        public SlotDefinitionAttribute()
        { }

        public SlotDefinitionAttribute(string name)
        {
            Name = name;
            IsThreadsafe = false;
        }
    }
}
